home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gxhttile.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.7 KB  |  49 lines

  1. /* Copyright (C) 1995, 1996 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gxhttile.h,v 1.2 2000/09/19 19:00:37 lpd Exp $ */
  20. /* Halftone tile definition */
  21. /* Requires gxbitmap.h */
  22.  
  23. #ifndef gxhttile_INCLUDED
  24. #  define gxhttile_INCLUDED
  25.  
  26. /*
  27.  * A halftone tile is just an ordinary bitmap tile, plus a couple of other
  28.  * items associated with managing its existence in a tile cache.
  29.  * (See gzht.h for details.)  We define this in its own file so that
  30.  * clients of gx_device_color can access it.
  31.  */
  32.  
  33. #ifndef gx_ht_tile_DEFINED
  34. #  define gx_ht_tile_DEFINED
  35. typedef struct gx_ht_tile_s gx_ht_tile;
  36.  
  37. #endif
  38.  
  39. struct gx_ht_tile_s {
  40.     gx_strip_bitmap tiles;    /* the currently rendered tile */
  41.     int level;            /* the cached gray level, i.e. */
  42.     /* the number of spots whitened, */
  43.     /* or -1 if the cache is empty */
  44.     uint index;            /* the index of the tile within */
  45.     /* the cache (for GC) */
  46. };
  47.  
  48. #endif /* gxhttile_INCLUDED */
  49.